package com.atguigu.springcloud.OrderMain80.service;

import com.atguigu.springcloud.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: 王丹
 * @Date: 2021/3/9 0009 23:16
 * @Description:
 */
@FeignClient(value="cloud-payment-service")
@Component
public interface PaymentClient {

    @GetMapping(value = "/payment/get/{id}")
    public CommonResult getPaymentById(@PathVariable("id") Long id);
}
